<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: 1244762145
  Date: 2021/9/27
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆成功</title>
</head>
<body>
<%--<a href="./findItems">查看商品信息</a>--%>
<%--<s:property value="#request.tip"/>--%>
<%--修改个人信息<p/>--%>
<%--<s:form action="UserUpdate" method="post">--%>
<%--    <s:hidden name="loginUser.customerId"--%>
<%--              value="%{#request.loginUser.customerId}"/>--%>
<%--    <s:textfield name="loginUser.account" label="修改账号"--%>
<%--                 value="%{#request.loginUser.account}"/>--%>
<%--    <s:textfield type="password" name="loginUser.password"--%>
<%--                 label="修改密码" value="%{#request.loginUser.password}"/>--%>
<%--    <s:textfield name="loginUser.name" label="修改姓名"--%>
<%--                 value="%{#request.loginUser.name}"/>--%>
<%--    <s:radio list="#{'0':'先生','1':'女士'}" name="loginUser.sex" label="修改性别"--%>
<%--             value="%{#request.loginUser.sex}"/>--%>
<%--    <sx:datetimepicker name="loginUser.birthday" label="修改出生日期" displayFormat="yyyy-MM-dd"--%>
<%--                       value="%{#request.loginUser.birthday}"/>--%>
<%--    <s:textfield name="loginUser.contactInfo.phone" label="修改电话"--%>
<%--                 value="%{#request.loginUser.contactInfo.phone}"/>--%>
<%--    <s:textfield name="loginUser.contactInfo.email" label="修改电子邮箱"--%>
<%--                 value="%{#request.loginUser.contactInfo.email}"/>--%>
<%--    <s:textfield name="loginUser.contactInfo.address" label="修改联系地址"--%>
<%--                 value="%{#request.loginUser.contactInfo.address}"/>--%>
<%--    <s:textfield name="loginUser.contactInfo.zipcode" label="修改邮政编码"--%>
<%--                 value="%{#request.loginUser.contactInfo.zipcode}"/>--%>
<%--    <s:textfield name="loginUser.contactInfo.fax" label="修改传真号码"--%>
<%--                 value="%{#request.loginUser.contactInfo.fax}"/>--%>
<%--    <s:submit value="修改"/>--%>
<%--</s:form>--%>
<%--<s:form action="UserDelete" method="post">--%>
<%--    <s:hidden name="loginUser.customerId"--%>
<%--              value="%{#request.loginUser.customerId}"/>--%>
<%--    <s:submit value="删除"/>--%>
<%--</s:form>--%>
<table>
    <tr>
        <td>个人信息：<p></td>
    </tr>
    <tr>
        <td>用户名：</td>
        <td><s:property value="#request.loginUser.account"/></td>
    </tr>
    <tr>
        <td>姓名：</td>
        <td><s:property value="#request.loginUser.name"/></td>
    </tr>
    <tr>
        <td>性别：</td>
        <td><s:property value="#request.loginUser.sex"/></td>
    </tr>
    <s:if test="#request.loginUser.address">
        <s:form action="UserdelAddr" method="post">
            <s:hidden name="loginUser.customerId" value="%{#request.loginUser.customerId}"/>
            <tr>
                <td>详细地址：</td>
                <td><s:property value="#request.loginUser.address.detail"/></td>
            </tr>
            <tr>
                <td><s:submit value="删除 "/></td>
            <tr/>
        </s:form>
    </s:if>
    <s:else>
    添加新地址：<p>
    <s:form action="UseraddAddr" method="post">
        <s:hidden name="loginUser.customerId"
                  value="%{#request.loginUser.customerId}"/>
        <s:textfield name="address.detail" label="详细地址"/>
        <s:textfield name="address.zipcode" label="邮政编码"/>
        <s:textfield name="address.phone" label="手机电话"/>
        <s:textfield name="address.type" label="类型home,office,etc"/>
        <s:submit value="添加"/>
    </s:form>
    </s:else>
</table>

<%--<hr>--%>
<%--添加新地址：<p>--%>
<%--    <s:form action="UseraddAddr" method="post">--%>
<%--        <s:hidden name="loginUser.customerId"--%>
<%--                  value="%{#request.loginUser.customerId}"/>--%>
<%--        <s:textfield name="address.detail" label="详细地址"/>--%>
<%--        <s:textfield name="address.zipcode" label="邮政编码"/>--%>
<%--        <s:textfield name="address.phone" label="联系电话"/>--%>
<%--        <s:textfield name="address.type"--%>
<%--                     label="地址类型（office,home,etc.）"/>--%>
<%--        <s:submit value="添加"/>--%>
<%--    </s:form>--%>

</body>
</html>
